#include<iostream>
using namespace std;

class Salestem
{
public:
    Salestem();
    Salestem(int bookNo, int unitsSold,int sellingPrice,int discout):_bookNo(bookNo),_unitsSold(unitsSold),_sellingPrice(sellingPrice),_discout(discout){_salePrice = discout*0.1*_sellingPrice;}
    void CinBookNo(int x){_bookNo = x;}
    void CinUnitsSold(int x){_unitsSold = x;}
    void CinSellingPrice(int x){_sellingPrice = x;}
    void CinSalePrice(int x){_salePrice=x;}
    void Cindiscout(int x ){_discout = x;}
    Salestem& operator=(Salestem &s);
    Salestem(Salestem &s1,Salestem &s2);
    friend istream& operator>>(istream &is,Salestem&si);

private:
    int _bookNo,_unitsSold,_sellingPrice,_salePrice,_discout;

};
